/********************************************************/
/*	Copyright (C) 2016 Gong Li Bin			*/
/*	Project:	GlbCloud			*/
/*	Author:		gong_libin			*/
/*	Date:		2012_01_15			*/
/*	File:		MrMulti.h			*/
/********************************************************/

#ifndef _MRMULTI_H
#define	_MRMULTI_H

#include "MrNet.h"

class CMrMulti : public CMrNet
{
public:
	CMrMulti();
	virtual ~CMrMulti();

	void* MrMultiGetMulti();
	void MrMultiSetMulti(void* pAddr);

	virtual int MrNetSend(UCHAR* puszPacket, int iLength);
	virtual int MrNetRecv(UCHAR* puszPacket, int iLength);
	virtual int MrNetSendAll(UCHAR* puszPacket, int iLength);
	virtual int MrNetRecvAll(UCHAR* puszPacket, int iLength);

	virtual int MrNetInitSend(char* pszUrl);
	virtual int MrNetInitRecv(char* pszUrl);
	virtual int MrNetInitSend(struct sockaddr_in* pstAddr);
	virtual int MrNetInitRecv(struct sockaddr_in* pstAddr);
	virtual int MrNetInitSend(char* pszAddress, char* pszPort);
	virtual int MrNetInitRecv(char* pszAddress, char* pszPort);

private:
	struct sockaddr_in m_stMulti;

};

#endif /* _MRMULTI_H */
